<template>
    <div>
        <el-table
                :data="tableData">
            <el-table-column
                    :label="$t('message.EletronicInfoTool.installType')"
                    min-width="200"
                    prop="type"
                    sortable
                    align="center">
            </el-table-column>
            <el-table-column
                    :label="$t('message.EletronicInfoTool.attributes')"
                    prop="attributes"
                    min-width="200"
                    align="center">
            </el-table-column>
            <el-table-column
                    :label="this.$t('message.EletronicInfoTool.operation')"
                    min-width="300"
                    align="center">
                <template slot-scope="scope">
<!--                    <el-button type="text" size="small" @click="handleView(scope.row)">查看</el-button>-->
                    <el-button type="text" size="small" @click="handleEdit(scope.row)">编辑</el-button>
                    <el-button type="text" size="small" @click="handleDelete(scope.row)">删除</el-button>
                </template>
            </el-table-column>
        </el-table>
    </div>

</template>

<script>
import DialogMixin from "../DialogMixin";
import {InstallTypeEnum} from "../../../command/ElectricalCommand";

export default {
    computed: {
        InstallTypeEnum() {
            return InstallTypeEnum
        }
    },
    mixins: [DialogMixin],
    name: "AttributeList",
    mounted() {

    },
    data() {
        return {}
    },
    props: {
        tableData: {
            type: Array,
            default: [],
        }
    },
    methods: {
        handleAdd(){

        },
        handleView(row) {
        },
        handleEdit(row){

        },
        handleDelete(row){

        }
    },
}
</script>

<style scoped>
/*.el-table .el-column{*/
/*    font-size: 14px;*/
/*}*/
/*.el-table th .cell{*/
/*    font-size: 16px !important;*/
/*}*/
</style>